
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>批量压缩产品首图</title>
<link rel="stylesheet" type="text/css" href="__ROOT__/Public/plugins/uploadifive/uploadifive.css" />
</head>
<bodyf style="text-align: center;">
	<style type="text/css"> 
		#uploadify{z-index: 999999;}
		#page{margin-top: 50px;}
		#page b{color: gray;}
		#start{width: 80px; margin-left: 45%;margin-top: 30px;}
	</style>
<div id="page" style="">开始第<b>0</b>页</div>
<button type="button" id="start">开始压缩</button>
<script src="__ROOT__/Public/plugins/uploadifive/jquery.min.js" type="text/javascript"></script> 
<!--防止客户端缓存文件，造成uploadify.js不更新，而引起的“喔唷，崩溃啦”-->

<script src="__ROOT__/Public/plugins/uploadify/uploadify-move.js" type="text/javascript"></script> 
<script type="text/javascript">
$(document).ready(function(){
	var page={:I('page')+1};
	$.get("/index.php?m=Admin&c=Uploadify&a=aa&page="+page+"&action=yes",function(rs){
		rs=JSON.parse(rs);
		if(rs.action=='yes'){
			$('#page b').html({:I('page')+1});
			location.href="/index.php?m=Admin&c=Uploadify&a=aa&page="+page;//&action=yes
		}else{
			alert('压缩完毕！');
		}
	});
});
</script>
</body>
</html>